﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebAppMatrix
{
    public interface IConvertWithString
    {
        /// <summary>
        /// 从字符串转换到实体
        /// </summary>
        /// <param name="source"></param>
        /// <returns></returns>
        IConvertWithString ConvertFromString(string source);

        /// <summary>
        /// 转换为字符串
        /// </summary>
        /// <returns></returns>
        string ConvertToString();
    }
}
